package org.aurora.core.biz.service.impl;

import org.apache.commons.collections4.CollectionUtils;
import org.aurora.core.biz.persistence.SchedulerMapper;
import org.aurora.core.biz.service.ISchedulerService;
import org.aurora.model.entity.SchedulerInfo;
import org.aurora.model.entity.SlotAssignInfo;
import org.aurora.model.metadata.SchedulerMetaData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SchedulerServiceImpl implements ISchedulerService {

    @Resource
    private SchedulerMapper schedulerMapper;

    @Override
    public List<SchedulerInfo> getAllSchedulersByState(int state) {
        return this.schedulerMapper.getAllSchedulersByState(state);
    }
}
